//
//  JYConstant.h
//  FpdCarInCube
//
//  Created by WXC on 2017/4/11.
//  Copyright © 2017年 jiaoyin. All rights reserved.
//

#ifndef JYConstant_h
#define JYConstant_h

#define JYWriteToPlist(data, filename) [data writeToFile:[NSString stringWithFormat:@"%@/%@.plist",NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).lastObject, filename] atomically:YES];

#define JYCarDetectionWriteToPlist(data, path,filename) [data writeToFile:[NSString stringWithFormat:@"%@/%@.plist",path, filename] atomically:YES];

//#define JYWriteToPlist(data, filename) [data writeToFile:[NSString stringWithFormat:@"%@/%@.plist",@"/Users/wxc/Desktop", filename] atomically:YES];

typedef NS_ENUM(NSInteger, CheXingType) {
    VehicleBrandNameType = 1,
    VehicleLineListType = 2,
    VehicleModelListType = 3,
};


typedef NS_ENUM(NSInteger, IntendedOrderType) {
    IntendedOrdersDefaultType = -1,
    IntendedOrderWeiQianYueType = 0,
    IntendedOrderQianYueType = 1,
    IntendedOrderWuCheQuXiaoType = 2,
    IntendedOrderWeiYueQuXiaoType = 3,
    IntendedOrderYiShenHeType = 4,
    IntendedOrderBuTongGuoType = 5,
};


typedef NS_ENUM(NSInteger, VehicleStatusType) {
    VehicleStatusDefaultType = -1,
    VehicleStatusStopType = 1,
    VehicleStatusXianZhiType = 2,
    VehicleStatusDaiFaCheType = 3,
    VehicleStatusYunYingType = 4,
    VehicleStatusKouCheType = 5,
    VehicleStatusWeiXiuType = 6,
    VehicleStatusChuZhiType = 7,
};

typedef NS_ENUM(NSInteger, ContractStatusType) {
    
    ContractStatusDefaultType = -1,
    ContractStatusDaiShenHeType = 0,
    ContractStatusYiShenHeType = 1,
    ContractStatusBuTongGuoType = 2,
    ContractStatusWeiZhiXingType = 3,
    ContractStatusZhiXingZhongType = 4,
    ContractStatusGuaQiType = 5,
    ContractStatusJieSuType = 6,
    ContractStatusYiWaiZhongZhiType = 7,
};

typedef NS_ENUM(NSInteger, RecognitionType) {
    CarDrivingLicenseType = 1,
    IDCardInfoType = 2,
    ManDriversLicenseType = 3,
    
};

typedef NS_ENUM(NSInteger, GaiKuangType) {
    CarGaiKuangType = 1,
    KeHuGaiKuangType = 2,
    HeTongGaiKuangType = 3,
    
};

typedef NS_ENUM(NSInteger, RequestType) {
    LoginReqPost = 1,
    GetDriverSurveyApp,
    GetContractsCountApp,
    GetVehicleSurveyApp,
    GetContractsListApp,
    GetContractsDetailByIdApp,
    GetContractExtraChargesByIdApp,
    GetStockInOutsOfContractByIdApp,
    GetReceivablesOfContractByIdApp,
    GetVehicleListApp,
    GetVehicleDetailByIdApp,
    GetVehicleCertificateByIdApp,
    GetVehiclePlateByIdApp,
    GetVehicleContractsByIdApp,
    GetIntendedOrdersListApp,
    GetVehiclePlateListForNoUsed,
    VehicleBrandList,
    VehicleLineList,
    VehicleModelList,
    SysBasicDictionaryList,
    SysBasicGetCompanyTree,
    GetUserInfoApp,
    GetIntendedOrdersDetailByIdApp,
    GetIntendedExpensesListByIdApp,
    GetTrafficViolationListApp,
    GetDriverListOrDetailApp,
    GetDriverLicenseListApp,
    GetDriverContractsListApp,
    GetOrderManageCount,
    StockInOutListApp,
    StockInOutDetailApp,
    FileUploadImgListUpload,
    GetDriverIsExistByCardApp,
    GetLicenseIsExistByCardApp,
    GetIsExistsDrivingLicenseApp,
    AddIdentityCardApp,
    AddDrivingLicenseApp,
    AddDriversLicenseApp,
    AccountLogout,
    InspectVehicle,
    IsAllowInspect,
    Signature,
    GetGtasksApp,
    GetInsuranceListApp,
    GetPageAccidentListApp,
    GetSingleAccidentApp,
    GetFinanceResultListApp,
    GetReceivablePaidRecordsApp,
    AddIdeaFeedBackApp,
    ModifyPassword,
    ProductTypeSelectList,
    GetMyApprovalListApp,
    GetApprovalDetailApp,
    AuditSchemeInstance,
    UnreceivedBills,
    UnpaidBills,
    BillDetail,
    BillFocusEvents,
    ModifyBill,
    PayBill,
    BillHistory,
    ContractDriver,
    AutoPayZeroBill,
    CompletedBills,
    GetDrivingLicenseByIdApp,
    GetIdentityCardByIdApp,
    GetDriversLicensedByIdApp,
    ForceUpdatePassword,
    GetFeeTypeList,
    PayReceivable,
    PayPayable,
    GetLastVersion,
    GetDriverListApp,
    GetRentTime4IntentedOrder,
    
    
    VehiclePositionPost,
    TrackRealTimeInfoPost,
    TrackTrajectoryListPost,
    TrackTrajectoryPost,
    CarConditionMonitorPost,
    GetPageVehiclePositionPost,
    GetPageVehiclePositionSearchPost,
    VehiclePostionCountGet,
    VehicleVehicleListPost,
    VehicleDetailWithDriverDevicePost,
    InstallDeviceByIMEIPost,
    AllTrafficDataPostSearch,
    SingleVehicleTrackInfoPost,
    SingleTrafficDataPost,
    SingleTrackTrafficDataPost,
    GetPageAlertRecordListPost,
    AlertRecordEnumGet,
    ProcessAlarmBySelfPost,
    GetUserInfoForMobilePost,
    ModifyUserPasswordPost,
    GetNotifySettingGet,
    UpdateNotifySettingPost,
    VehiclePositionDetailPost,
    GetLastVersionPost,
    GetLastVersionPostHome,
    GetUBIPremiumSummaryListPost,
    GetUBIPremiumSummaryPost,
    GetHistoryTrackPremiumListPost,
    GetTrackPremiumPost,
    GetRealTimeDynamicPreniumPost,
    GetVehicleStatusPost,
    GetDatesOfDrivingPost,
    UBIGetDatesOfDrivingPost,
    GetPageCarMonitorLogsPost,
    GetAlertProcessingDetailsPost,
    GetAlertProcessingDetailsGet,
    UnInstallDeviceCheckPost,
    UnInstallDevicePost,
    DeviceUnbindReasonEnumGet,
    GetPageDrvingBehavorPrinumPost,
    DrivingActionEnumGet,
    GetPageSPeedPrinumPost,
    
    
    
    Userinfo,
    Symbols,
    
    
    
};

typedef NS_ENUM(NSInteger, HttpRequestMethod) {
    JYGet = 0,
    JYPost,
};



#define ISLOGIN                         @"isHaveLogin"             // 登录
#define User_Name                         @"userName"             // 登录

#define CarDetectionTime                @"carDetectionTime"

#endif /* JYConstant_h */

